package controllers;

import java.util.ArrayList;

public class MsgCollection {
	private ArrayList<Messages> msgCollection;
	
	public MsgCollection() {
		msgCollection = new ArrayList<Messages>();
	}

	public Messages newMessages(int playerNr) {
		msgCollection.add(playerNr, new Messages(playerNr));
		return msgCollection.get(playerNr);
	}
	
	public Messages getMessages(int playerNr) {
		return msgCollection.get(playerNr);
	}

}
